package com.linkhub.oms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.linkhub.oms.common.enums.mp.DataStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 国家分区表
 * </p>
 *
 * @author Frank
 * @since 2024-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_country_partition",autoResultMap = true)
@ApiModel(value="CountryPartitionEntity对象", description="国家分区表")
public class CountryPartitionEntity implements Serializable {


    @ApiModelProperty(value = "主键")
    @TableId(value = "Fid", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "国家编码")
    @TableField("Fcountry_code")
    private String countryCode;

    @ApiModelProperty(value = "国家名称")
    @TableField("Fcountry_name")
    private String countryName;

    @ApiModelProperty(value = "国家分区")
    @TableField("Fcountry_partition")
    private String countryPartition;

    @ApiModelProperty(value = "分区下的所有邮编")
    @TableField(value = "Fpost_code", typeHandler = FastjsonTypeHandler.class)
    private List<String> postCode;

    @ApiModelProperty(value = "数据状态：1-有效；0-无效")
    @TableField("Fdata_status")
    private DataStatusEnum dataStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField("Fcreated_time")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("Fupdate_time")
    private LocalDateTime updateTime;


}
